<?php

function ai_css_version()
{
    $files = [
        base_path('plugin/ai/public/css/app.css'),
        base_path('plugin/ai/public/painting/css/index.css'),
    ];
    $mtimes = array_map('filemtime', $files);
    return max($mtimes);
}

function ai_js_version()
{
    $files = [
        base_path('plugin/ai/public/js/app.js'),
        base_path('plugin/ai/public/js/util.js'),
        base_path('plugin/ai/public/painting/js/index.js'),
    ];
    $mtimes = array_map('filemtime', $files);
    return max($mtimes);
}
